package org.kazao.sms;

import java.io.*;
import java.util.*;
import java.text.*;

public class KazaoUtils {
    public static String substituteSymbol(String text, String symbol, String value) {
        StringBuffer buffer;        
        while (text.indexOf(symbol) >= 0) {
            buffer = new StringBuffer(text);
            buffer.replace(text.indexOf(symbol), text.indexOf(symbol) + symbol.length(), value);
            text = buffer.toString();
        }
        return text;
    }
}
